<template>
  <div id="wrap">
    <h1>defineEmits带类型声明</h1>
    <scu11 
    @custom-event="handlerCustomEvent" 
    @submit="handleSubmit"
    ></scu11>
    <hr>
  </div>
</template>

<script lang='ts'>
export default {
  name: 'scu20',
}
</script>

<script lang='ts' setup>
import { ref } from 'vue'
import scu11 from "./component/scu11.vue";
const handlerCustomEvent=(message:string)=>{
    console.log(message);
}
const handleSubmit=(payload:{email:string;passworld:string})=>{
    console.log(payload.email,payload.passworld);
    const result=payload.email===payload.passworld
    console.log(result);
}
</script>

<style scoped lang='scss'>

</style>